<?php
/**
 * @author spenceryg
 * @date 2022/11/25
 * @time 10:46 下午
 * @focus love & life
 */

namespace app\admin\controller\sys\validate;

class AdminRoleValidate extends \think\Validate
{
    protected $rule = [
        'name' => 'require|unique:admin_role',
        'node' => 'require',
        'access' => 'require'
    ];

    protected $message = [
        'name.require' => '角色名必须',
        'name.unique' => '角色名已存在',
        'node.require' => '菜单必须',
        'access.require' => '权限必须'
    ];
}
